
<form class="layui-form" method="post" action="#" lay-filter="pageForm">
    <table class="layui-table" lay-size="sm">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th colspan="2">指标名称</th>
            <th>评分标准</th>
            <th>评分说明</th>
            <th>满分</th>
            <th>打分</th>
        </tr>
        </thead>
        <tbody>
        <volist name="tree" id="vo">
            <empty name="vo.children">
                <tr>
                    <td colspan="2">{$vo.title}</td>
                    <td>{$vo.standard|nl2br}</td>
                    <td>{$vo.remark|nl2br}</td>
                    <td>{$vo.score}</td>
                    <td><input type="number" name="score" required lay-verify="required|number" value=""  min="{$vo.min}" max="{$vo.max}" autocomplete="off" class="layui-input" /></td>
                </tr>
                <else />
                <volist name="vo.children" id="vv" key="k">
                <tr>
                    <if condition="$k eq 1"><td rowspan="{:count($vo['children'])}">{$vo.title}</td></if>
                    <td>{$vv.title}</td>
                    <td>{$vv.standard|nl2br}</td>
                    <td>{$vv.remark|nl2br}</td>
                    <td>{$vv.score}</td>
                    <td><input type="number" name="score" required lay-verify="required|number" value="" min="{$vv.min}" max="{$vv.max}" autocomplete="off" class="layui-input" /></td>
                </tr>
            </volist>
            </empty>
        </volist>
        </tbody>
    </table>
</form>